package com.microservice.salmon.oauth.service.rbac;

import com.microservice.salmon.db.entities.SysMenu;
import com.microservice.salmon.db.entities.SysRole;
import com.microservice.salmon.db.entities.SysUser;

import java.util.List;

/**
 * <p>
 * RBAC具体的业务逻辑
 * </p>
 *
 * @author 王洪庆 2018-10-30
 */
public interface SysRbacService {

    List<SysRole> getRoleByUserId(int userId);

    List<SysRole> getRoleByUsername(String username);

    SysUser getUserInfoByUsername(String username);

    List<SysMenu> getMenuInfoByRoleId(int roleId);

}
